<?php
session_start();
include("include/config.inc.php");

$updateUserTime = "UPDATE user 
                      SET lastActiveTime = '".date("Y-m-d 00:00:00")."'
                    WHERE userName = '".$_SESSION['s_activId']."'";
$updateUserTimeRes = mysql_query($updateUserTime);
unset($_SESSION['s_activId']);
unset($_SESSION['s_userType']);
session_destroy();
header("Location: checkLogin.php");
exit();
?>